When the shell script executes, the shell interprets the lines in the script and executes them;For some specially processed sentences, we can use quotation marks or backslashes to prevent the shell from interpreting the execution.As below, when you
1. If it is single quotes, the following error appears:
DB2 INSERT into sales (region) values (')
db21034e This command is treated as SQL
Statement because it is not a valid command line Processor command. During SQL processing, it returns:
The DB2 like predicate query statement supports the use of percent sign (%), underscore (_), does not support square brackets ([]) (note: It treats square brackets as actual values rather than wildcards), and when we need to query for the percent
The LOAD DATA infile statement reads from a text file into a table at a high speed. If you specify a local keyword, read the file from the client host. If local is not specified, the file must be located on the server. (Local is available in MySQL3.2
Load data [low_priority] [local] infile 'file_name.txt '[Replace | ignore] into Table tbl_name[Fields[Terminated by '\ T'][Optionally] enclosed by ''][Escaped by '\'][Lines terminated by '\ n'][Ignore number lines][(Col_name,...)]
Load daThe TA
Http://blog.csdn.net/adparking/article/details/7098221
Load data [low_priority] [local] infile 'file_name.txt '[Replace | ignore]
Into Table tbl_name[Fields[Terminated by '\ T'][Optionally] enclosed by ''][Escaped by '\'][Lines terminated by '\
The load data infile statement reads a table from a text file at a high speed. If you specify the local keyword, read the file from the client host. If local is not specified, the file must be on the server. (Local is available in MySQL 3.22.6 or a
Use bitsCN.com for mysqlloaddatainfile
Load data [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name.txt'
[REPLACE | IGNORE]
Into table tbl_name
[FIELDS
[Terminated by 'string']
[[OPTIONALLY] enclosed by 'char ']
[Escaped by 'char
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.